<!-- src/views/Home.vue -->
<template>
    <div>
      <h1>首页</h1>
      <button @click="goToNewPage">跳转到新页面</button>
    </div>
  </template>
  
  <script>
  export default {
    name: 'Home',
    methods: {
      goToNewPage() {
        this.$router.push('/new-page')
      }
    }
  }
  </script>
  
  <style scoped>
  /* 添加你的样式 */
  </style>